package com.biz.primus.ms.geo.trans;

import com.biz.primus.model.geo.vo.AreaResponseVo;
import com.biz.primus.ms.geo.dao.ro.AbstractAreaRo;
import com.google.common.base.Function;

/**
 *
 *@author JKLiues
 *@date 2017/11/8
 */
public class AreaRo2AreaResponseVo implements Function<AbstractAreaRo, AreaResponseVo> {

    @Override
    public AreaResponseVo apply(AbstractAreaRo input) {
        AreaResponseVo resp = new AreaResponseVo();
        resp.setId(input.getId().longValue());
        resp.setLat(input.getLat());
        resp.setLon(input.getLon());
        resp.setName(input.getName());
        return resp;
    }
}
